
import { Base } from '../../utils/base.js';

class Category extends Base {
  constructor() {
    super();
  }
  //产品分类
  getproductCategoryData(param,callback) {
    var params = {
      url: 'product-category/index?num=' + param.num,
      data: param,
      type: 'post',
      sCallback: function (data) {
        callback && callback(data);
      }
    }
    this.request(params);
  }
  //产品分类
  getproductType(num, callback) {
    var params = {
      url: 'product-type/index?num=' + num,
      data: {},
      type: 'post',
      sCallback: function (data) {
        callback && callback(data);
      }
    }
    this.request(params);
  }
}

export { Category };